package query;

import java.io.IOException;
import java.io.Serializable;

import model.Kunde;
import server.MySqlConnector;

public class KundeInsertQuery extends AbstractQuery implements Serializable {
	private static final long serialVersionUID = 2661011647794721161L;
	Kunde kunde = null;
	
	public KundeInsertQuery(Kunde kunde){
		this.kunde = kunde;
	}
	
	public void doAction() {
	
		Kunde status = MySqlConnector.insertKunde(this.kunde);
		
		try {
			serverOutputStream.writeObject(status);
		} catch (IOException e) {
			e.printStackTrace();
		}	
	}
}
